package xorms

import "gitee.com/injoyai/goutil/conv"

func New(cfg *Config) *Engine {
	return cfg.SetType(conv.SelectString(len(cfg.Type) > 0, cfg.Type, defConfig.Type)).Open()
}
